package com.example.administrator.uiautomator.testcases.login;

import android.content.Context;
import android.content.Intent;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import android.support.test.uiautomator.By;
import android.support.test.uiautomator.UiDevice;
import android.support.test.uiautomator.Until;

import com.example.administrator.uiautomator.BasicTest;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;

import static junit.framework.Assert.assertFalse;

/**
 * Created by Administrator on 2017/7/4.
 */

public class Login1 extends BasicTest{


    @Test
    public void name() throws Exception {
        helper.getPageCommon().clickMyTab();
        helper.getPageMy().clickLoginBtn();
        helper.getPageLogin().login("robotium2016@163.com","87654321");
        assertFalse(helper.getPageLogin().getLoginBtn().isEnabled());
    }

}
